import React, { Component } from "react";
import { NavBar } from "antd-mobile";
import "./index.scss";

/**
 * 头部导航栏
 */
class MyNavBar extends Component {
  render() {
    const { navBarName, NavigationRouteGoBact } = this.props;
    return (
      <div className="navBarWrapper">
        <NavBar
          mode="light"
          icon={
            <span className="iconfont icon-gongxiangtubiaozhuangtaileicaozuolei59" />
          }
          onLeftClick={() => NavigationRouteGoBact()}
        >
          {navBarName}
        </NavBar>
      </div>
    );
  }
}

export default MyNavBar;
